package cdu.hjx.project.sys.service;

import cdu.hjx.project.pojo.Role;

import java.util.List;

public interface RoleService {

    int add(Role role) throws Exception;
    Role findByName(String role_name) throws Exception;
    List<Role> roles() throws Exception;

    int insert(Role role) throws Exception;

    int updateRole(Role role) throws Exception;

    int deleteRole(Integer id) throws Exception;

    Role findRoleById(Integer id);
}
